package Ch10;

public class MouseTest3 {

	public static void main(String[] args) {
		Mouse[] arr = new Mouse[3];
		arr[0] = new Mouse();
		arr[1] = new WheelMouse();
		arr[2] = new OpticalMouse();
		
		for(int i = 0; i < arr.length; i++){
			arr[i].clickLeft();
			arr[i].clickRight();
			System.out.println("end");
		}
	}
}
